package br.com.ffm.praticas.bean;

public class LegalCostumer extends Costumer{
	
	private String cnpj;
	private Address businessAdress;
	
	public LegalCostumer() {
		
	}
	
	public LegalCostumer(String cnpj){
		this.cnpj = cnpj;
	}

	/**
	 * @param cnpj the cnpj to set
	 */
	public void setCnpj(String cnpj) {
		this.cnpj = cnpj;
	}

	/**
	 * @return the cnpj
	 */
	public String getCnpj() {
		return cnpj;
	}
	/**
	 * 
	 * @param businessAdress
	 */
	public void setBusinessAdress(Address businessAdress) {
		this.businessAdress = businessAdress;
	}

	/**
	 * 
	 * @return
	 */
	public Address getBusinessAdress() {
		return businessAdress;
	}
	
	@Override
	public String toString(){
		String nl = System.getProperty("line.separator");
		return "ID: "+ this.getId()+ nl +"Cliente: "+this.getName()+" "+this.getLastName()+nl+"CPF:"+this.getCpf()+nl+"CNPJ:"+this.getCnpj();
	}

}
